# from app.product.model import Sku as SkuTable
# from common.mixins import DictMixin
#
#
# class Skus:
#     # def __init__(self, sku_id):
#     #     self.id = sku_id
#     def get(self, **kwargs):
#         pass
#
#     def generate_sku_sn(self):
#         pass
#
#
# class Sku:
#     def __init__(self, sku_id):
#         self.id = sku_id
#
#     def create(self, **kwargs):
#         """"""
#         sku = SkuTable()
#         new_sku = DictMixin.from_dict(sku, kwargs)
#         if kwargs.get('name') and not kwargs.get('short_name'):
#             pass
#         new_sku.add()
#         return new_sku
#
#     def generate_short_name(self, name):
#         """修改商品名称"""
#         return ''
#
#
# class Category:
#     def __init__(self, category_id):
#         self.id = category_id
#
#     def get_parents_recursive(self):
#         """获取所有父"""
#
#     def get_children_recursive(self):
#         """获取所有子"""
